<?php 
	$this->ckeditor = true;
?>
<div class="deal">
<div class="deal_content_top"></div>
<div class="deal_content">
<h3>Gửi thông báo mới</h3>
	<?php if(count($this->errors) > 0): ?>
		<div class="ui-widget">
			<div class="ui-state-highlight ui-corner-all" style="padding: 0 .7em;">
			<?php foreach($this->errors as $error): ?> 
				<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span> 
				<?php echo $error ?></p>    
			<?php endforeach ?>
			</div>
		</div>
	<?php endif ?>
<form
	action="<?php echo $this->baseUrl('index.php/admin_cms/newsletter/send') ?>"
	method="post">
		<p>
			<label for="title">Tiêu đề *</label>
		</p>
		<p>	
			<?php echo $this->formText('subject', '', array('size' => '70')); ?>
		</p>
		<p>
			<select name="category_id" id="cbbdeals">
				<?php foreach($this->categories as $category): ?>
				<option value="<?php echo $category->category_id ?>"><?php echo $category->name ?></option>
				<?php endforeach ?>
			</select>
		</p>
		<p>
		<label for="content">Nội dung</label></p>
		<?php echo $this->formTextArea('content', '', array('rows'=>'12', 'cols'=>'50')); ?>		
		<p>
		<?php echo $this->formSubmit('submit', 'Gửi', array('class'=>'button')); ?>
		</p>
</form>
<?php echo $this->setupCKEditor( 'content' ); ?>
</div>
<div class="deal_content_bottom"></div>
</div>
